<?php

class Application_Form_Oenquiry extends Zend_Form
{

    public function init()
    {
        /* Form Elements & Other Definitions Here ... */
    	$this->setName('Order');
    	
    	$order_no = new Zend_Form_Element_Text('order_no');
    	$order_no->setLabel('Order Number')
    		->addFilter('StripTags')
    		->addFilter('StringTrim')
    		->setAttrib('class', 'short')
    		->setAttrib('id', 'zfform')
    		->addErrorMessage('Error: Order No. cannot be empty');
    	
    	$cust_no = new Zend_Form_Element_Text('cust_no');
    	$cust_no->setLabel('Customer Number')
    		->addFilter('StripTags')
    		->addFilter('StringTrim')
    		->setAttrib('class', 'short')
    		->setAttrib('id', 'zfform');
    	
    	
    	$submit = new Zend_Form_Element_Submit('submit');
    	$submit->setAttrib('id', 'submit');
    	
    	$this->addElements(array($order_no, $cust_no, $submit));
    }


}

